define(function(require) {
	var Backend = require('app-main/modules/customer-list/Backend');
	var ko = require('knockout');
	
	return {
		customers: ko.observableArray([]),
		activate: function() {
			var that = this;
			var service = new Backend();
			return service.getCustomers().then(function(data) {
				that.customers(data.data);
			});
		}
	};
});